﻿using FluentNHibernate.Automapping;
using FluentNHibernate.Automapping.Alterations;
using Messenia.Data.Models;

namespace Messenia.Data.Hibernate
{
    public class GroupResourceMappingOverride
        :IAutoMappingOverride<HumanResources> {
        public void Override (AutoMapping<HumanResources> mapping) {
            mapping.HasManyToMany<Groups>(x => x.Group)
            .Cascade.SaveUpdate ();
        }

        }
}